#pragma once

#include "form/IButton.h"
#include "Control.h"

class Button: public Control<IButton>
{
public:
	BEGIN_DEFINE_CLASS(CLSID_Button)
		DEFINE_INTERFACE_ENTRY(IButton)
		USE_INTERFACE_ENTRY(Control<IButton>)
	END_DEFINE_CLASS()

	Button();
	virtual ~Button();

	virtual void SetIndex(int32 index) { m_index = index; }
	virtual int32 GetIndex() const {return m_index; }

private:
	int32 m_index;
};
AUTO_REGISTER_CLASSMAP_ENTRY(Button)
